package com.xc.content.model.dto;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Mr.M
 * @version 1.0
 * @description 修改课程dto
 * @date 2022/9/7 17:40
 */
@Data
@ApiModel(value = "EditCourseDto", description = "修改课程基本信息")
public class EditCourseDto extends AddCourseDto {
    @ApiModelProperty(value = "课程ID", required = true)
//    Long类型的校验，需要用 NotNull
    @NotNull(message = "课程ID不能为空")
    private Long id;


}
